﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class BusinessCategoryInfoConfig : EntityTypeConfiguration<BusinessCategoryInfo>
    {
        public BusinessCategoryInfoConfig()
        {
            ToTable("Himall_BusinessCategories");
          
            HasRequired(x => x.CategoryInfo).WithMany(x => x.BusinessCategoryInfo).HasForeignKey(x => x.CategoryId);
        }
    }
}
